package com.example.designdemo.proxy;

import com.example.designdemo.decorator.Source;
import com.example.designdemo.factorymethod.Provider;

public class Proxy implements Souceable {
    private Source source;

    public Proxy(){
        super();
        this.source = new Source();
    }
    @Override
    public void method() {
        System.out.println("proxy before");
        source.method();
        System.out.println("proxy after");
    }
}
